package com.qhhc.hospital.mapper;

import com.qhhc.hospital.entity.Drug;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DrugMapper {
    public int insertDrug(Drug drug);
    
    public List<Drug> selectAllDrugs();
    
    public Drug selectDrugById(@Param("dr_id") Integer drId);
    
    public int updateDrug(Drug drug);
    
    public int deleteDrug(@Param("dr_id") Integer drId);
} 